﻿# Valid culture inputs

# CULTURE_INPUT = dde_abbasid
# CULTURE_INPUT = dde_hre
# CULTURE_INPUT = byzantine
# CULTURE_INPUT = indian
# CULTURE_INPUT = mena
# CULTURE_INPUT = northern
# CULTURE_INPUT = western
# CULTURE_INPUT = western_era1
# CULTURE_INPUT = western_era2
# CULTURE_INPUT = western_era3
# CULTURE_INPUT = western_era4
# CULTURE_INPUT = steppe

# CULTURE_INPUT = fp1_norse
# CULTURE_INPUT = fp2_iberian_christian
# CULTURE_INPUT = fp2_iberian_muslim

# CULTURE_INPUT = afr_berber

# CULTURE_INPUT = west_slavic

# CULTURE_INPUT = sami
# CULTURE_INPUT = ugro_permian

clothes_effect = { # Gene modifers to apply for characters wearing or not wearing clothes
    usage = game
    selection_behavior = max
    fallback = unclothed_body
    priority = 1

    clothed_body = {
        dna_modifiers = {
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }            
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                NOR = {
                    should_be_fully_naked_portrait_trigger = yes
                    should_be_topless_portrait_trigger = yes
                }
            }  
        }    
    }

    unclothed_body = {
        dna_modifiers = {          
        }
        weight = {
            base = 10
        }
    }

    unclothed_body_event = {
        dna_modifiers = {          
        }
        outfit_tags = { no_clothes }        
        require_outfit_tags = yes
        weight = {
            base = 1000
        }
    }
}

clothes = { # Special group for the ruler designer only. The game expects this to be named "clothes"

    usage = game
    selection_behavior = weighted_random
    priority = 20

    ruler_designer_clothes = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_bedchamber
                range = { 0 1 }
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }    
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                portrait_ruler_designer_trigger = yes
            }
        }
    }    
}

clothes_base = { # The lowest priority group of clothes with triggers based on rank and culture. All clothes triggers are found in 00_clothing_triggers.txt

    usage = game
    selection_behavior = weighted_random
    fallback = default_clothes
    priority = 1


    default_clothes = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_bedchamber
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        outfit_tags = { no_clothes }
        weight = {
            base = -100
        }
    }

## DDE HRE ##

    dde_hre_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = dde_hre # CULTURE_INPUT gets added into the trigger referenced in 00_clothing_triggers.txt so it's important the input is a correct match to an existing culture trigger
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era2_trigger = yes } 
            }
        }
    }
    
    dde_hre_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_hre } # common/scripted_modifiers/00_portrait_modifiers.txt
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = {  
                    CULTURE_INPUT = dde_hre # CULTURE_INPUT gets added into the trigger referenced in 00_clothing_triggers.txt so it's important the input is a correct match to an existing culture trigger
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era2_trigger = yes } 
            }
        }
    }

    dde_hre_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_hre } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_hre
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era2_trigger = yes } 
            }
        }
    }
    

## Western ##

    western_commoners = {

        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        outfit_tags = { western_commoner_outfit }
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = western
                }
            }  
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }     
        }
    }

    ep2_western_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    ep2_western_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }     
            }
        }
    }

    fp4_western_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }
 
    western_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }      
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_western_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
		        portrait_era1_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
		        portrait_era2_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    fp4_western_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era2_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = western
                }
                has_ce1_dlc_trigger = yes
                portrait_era2_trigger = yes 
                is_female = yes # Currently this sub group only contains one female outfit
            }
            modifier = {
                add = 20
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ce1_dlc_trigger = yes
                portrait_era2_trigger = yes    
                is_female = yes # Currently this sub group only contains one female outfit 
            }
        }
    }

    ep2_western_era3_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                } 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }      
            }
        }
    }

    fp4_western_era3_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = western
                }
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }

    western_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_western_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
		        portrait_era1_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
		        portrait_era2_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    fp4_western_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era2_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = western
                }
                has_ce1_dlc_trigger = yes
                portrait_era2_trigger = yes 
                is_female = yes # Currently this sub group only contains one female outfit
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ce1_dlc_trigger = yes
                portrait_era2_trigger = yes    
                is_female = yes # Currently this sub group only contains one female outfit
            }
        }
    }

    ep2_western_era3_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                } 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes  
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }    
            }
        }
    }

    fp4_western_era3_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp4_western_era3_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = western
                }
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ce1_dlc_trigger = yes
                OR = {
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }



## Byzantine ##

    byzantine_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_byzantine_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_byzantine_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }   
            }
        }
    }

    byzantine_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = byzantine }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }  
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_byzantine_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes 
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep3_byzantine_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }  
            }
            modifier = {
                add = 75
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }    
            }
        }
    }

    byzantine_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = byzantine } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
            }
            modifier = {
                factor = 0     
                has_ep3_dlc_trigger = yes   
            }
        }
    }

    ep3_byzantine_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes 
                portrait_era1_trigger = yes  
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_byzantine_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 75
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes 
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                } 
            }
            modifier = {
                add = 75
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }      
            }
        }
    }

    ep3_byzantine_era2_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_royalty_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_roy_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }                 
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

    ep3_byzantine_era1_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_imperial_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = byzantine
                    } 
                    portrait_royalty_clothing_trigger = { 
                        CULTURE_INPUT = byzantine
                    }                 
                }
                has_ep3_dlc_trigger = yes   
                portrait_era1_trigger = yes       
            }
        }
    }

    ep3_byzantine_era2_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_imperial_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = cloaks
                template = ep3_byzantine_era2_imp_01_loros
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                OR = {
                    portrait_imperial_clothing_trigger = { 
                        CULTURE_INPUT = byzantine
                    }                
                }
                has_ep3_dlc_trigger = yes   
                OR = {
                    portrait_era2_trigger = yes  
                    portrait_era3_trigger = yes  
                    portrait_era4_trigger = yes  
                }     
            }
        }
    }

## INDIAN ##

    indian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = indian
                }
            }
        }
    }

    indian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = indian }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = indian
                } 
            }
        }
    }

    indian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = indian } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = indian
                } 
            }
        }
    }

## DDE ABBASID ##

    dde_abbasid_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
			modifier = {
				add = -36 # Slightly lower if north african is valid
				portrait_commoner_no_mayors_trigger = { 
					CULTURE_INPUT = afr_berber
				}
			}
        }
    }

    dde_abbasid_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_abbasid }
            modifier = {
                add = {
                    value = 50
                    if = {
                        limit = {
                            OR = {
                                portrait_low_nobles_clothing_trigger = { 
                                    CULTURE_INPUT = fp3_iranian
                                }
                                portrait_low_nobles_clothing_trigger = { 
                                    CULTURE_INPUT = afr_berber
                                }
                            }
                        }
                        add = -36 # Slightly lower if iranian or north african is valid
                    }
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                }   
            }
        }
    }

    dde_abbasid_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                } 
            }
			modifier = {
				add = -36 # Slightly lower if iranian or north african is valid
				OR = {
					portrait_high_nobles_clothing_trigger = { 
						CULTURE_INPUT = fp3_iranian
					}
					portrait_high_nobles_clothing_trigger = { 
						CULTURE_INPUT = afr_berber
					}
				}
			}
        }
    }

## MENA ##

    mena_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { mena_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = mena
                }
            }
			modifier = {
				add = -36 # Slightly lower if north african is valid
				portrait_commoner_no_mayors_trigger = { 
					CULTURE_INPUT = afr_berber
				}
			}
        }
    }

    mena_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = mena
                }
            }
			modifier = {
				add = -36 # Slightly lower if north african is valid
				portrait_mayor_trigger = { 
					CULTURE_INPUT = afr_berber
				}
			}
        }
    }

    mena_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = mena } 
            modifier = {
                add = {
                    value = 50
                    if = {
                        limit = {
                            OR = {
                                portrait_low_nobles_clothing_trigger = { 
                                    CULTURE_INPUT = fp3_iranian
                                }
                                portrait_low_nobles_clothing_trigger = { 
                                    CULTURE_INPUT = afr_berber
                                }
                            }
                        }
                        add = -36 # Slightly lower if iranian or north african is valid
                    }
                }
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = mena
                }  
            }
        }
    }

    mena_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = mena } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = mena
                } 
            }
			modifier = {
				add = -36 # Slightly lower if iranian or north african is valid
				OR = {
					portrait_high_nobles_clothing_trigger = { 
						CULTURE_INPUT = fp3_iranian
					}
					portrait_high_nobles_clothing_trigger = { 
						CULTURE_INPUT = afr_berber
					}
				}
			}
        }
    }


    

## Steppe ##

    steppe_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = steppe
                }
            }
        }
    }

    mpo_mongol_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 80
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = steppe
                }
                has_mpo_dlc_trigger = yes
            }
        }
    }

    steppe_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }  
            }
            modifier = {
                factor = 0
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = fp3_turkic
                }
                OR = {
                    has_fp3_dlc_trigger = yes
                    has_mpo_dlc_trigger = yes        
                }
            }
        }
    }

    mpo_mongol_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                } 
                has_mpo_dlc_trigger = yes
            }
            modifier = {
                factor = 0
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = fp3_turkic
                }
                OR = {
                    has_fp3_dlc_trigger = yes
                    has_mpo_dlc_trigger = yes        
                }
            }
        }
    }

    steppe_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                } 
            }
            modifier = {
                factor = 0
                portrait_high_nobles_clothing_trigger = {
                    CULTURE_INPUT = fp3_turkic
                }
                OR = {
                    has_fp3_dlc_trigger = yes
                    has_mpo_dlc_trigger = yes        
                }
            }
        }
    }

    mpo_mongol_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }
                has_mpo_dlc_trigger = yes 
            }
            modifier = {
                factor = 0
                portrait_high_nobles_clothing_trigger = {
                    CULTURE_INPUT = fp3_turkic
                }
                OR = {
                    has_fp3_dlc_trigger = yes
                    has_mpo_dlc_trigger = yes        
                }
            }
        }
    }

    mpo_mongol_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_royalty_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_royalty_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }                 
                has_mpo_dlc_trigger = yes        
            }
            modifier = {
                factor = 0
                portrait_royalty_clothing_trigger = {
                    CULTURE_INPUT = fp3_turkic
                }
                OR = {
                    has_fp3_dlc_trigger = yes
                    has_mpo_dlc_trigger = yes        
                }
            }
        }
    }

    mpo_mongol_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_imperial_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 105
                portrait_imperial_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }                 
                has_mpo_dlc_trigger = yes        
            }
            modifier = {
                factor = 0
                portrait_imperial_clothing_trigger = {
                    CULTURE_INPUT = fp3_turkic
                }
                OR = {
                    has_fp3_dlc_trigger = yes
                    has_mpo_dlc_trigger = yes        
                }
            }
        }
    }



## Northern Pagans ##

    northern_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = northern
                }
            }
        }
    }

    northern_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = northern } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = northern
                }  
            }
        }
    }

    northern_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = northern } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = northern
                }
            }
        }
    }

## AFR ##

	afr_berber_commoners = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = afr_commoner_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
        weight = {
            base = 0
            modifier = {
                add = 41
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = afr_berber
                }
            }
        }
	}

	afr_berber_low_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = afr_low_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = afr_berber }
            modifier = {
                add = 51
				OR = {
					portrait_low_nobles_clothing_trigger = {
						CULTURE_INPUT = afr_berber
					}
					portrait_mayor_trigger = {
						CULTURE_INPUT = afr_berber
					}
				}
            }
        }
	}

	afr_berber_high_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = afr_high_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
		weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = afr_berber } 
            modifier = {
                add = 51
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = afr_berber
                } 
            }
        }
	}

## POL ##

    pol_west_slavic_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = pol_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = west_slavic
                }
            }
        }
    }

    pol_west_slavic_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = pol_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = west_slavic }
            modifier = {
                add = 100
                OR = {
                    portrait_low_nobles_clothing_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
                    portrait_mayor_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
                }
            }
        }
    }

    pol_west_slavic_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = pol_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = west_slavic } 
            modifier = {
                add = 100
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = west_slavic
                } 
            }
        }
    }

    pol_west_slavic_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = pol_imperial_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 101
                portrait_imperial_trigger = {
                    CULTURE_INPUT = west_slavic
                }
            }
            modifier = {
                add = 101
                portrait_royalty_trigger = {
                    CULTURE_INPUT = west_slavic
                }                  
            }
        }
    }

## CCP4 SAMI ##

ccp4_sami_commoners = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_sami_commoner_clothes
            range = { 0 1 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        modifier = {
            add = 100
            portrait_commoner_no_mayors_trigger = {
                CULTURE_INPUT = sami
            }
        }
    }
}

ccp4_sami_low_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_sami_low_nobility_clothes
            range = { 0 1 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        court_fashion_level_4_modifier = { INPUT_PARAMETER = sami }
        modifier = {
            add = 100
            OR = {
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = sami
                }
                portrait_mayor_trigger = {
                    CULTURE_INPUT = sami
                }
            }
        }
    }
}

ccp4_sami_high_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_sami_high_nobility_clothes
            range = { 0 1 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        court_fashion_level_5_modifier = { INPUT_PARAMETER = sami } 
        modifier = {
            add = 100
            portrait_high_nobles_clothing_trigger = { 
                CULTURE_INPUT = sami
            } 
        }
    }
}

## CCP4 KHANTY / UGRO-PERMIAN ##

ccp4_ugro_permian_commoners = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_khanty_commoner_clothes
            range = { 0 1 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        modifier = {
            add = 100
            portrait_commoner_no_mayors_trigger = {
                CULTURE_INPUT = ugro_permian
            }
        }
    }
}

ccp4_ugro_permian_low_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_khanty_low_nobility_clothes
            range = { 0 1 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        court_fashion_level_4_modifier = { INPUT_PARAMETER = ugro_permian }
        modifier = {
            add = 100
            OR = {
                portrait_low_nobles_clothing_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
                portrait_mayor_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
        }
    }
}

ccp4_ugro_permian_high_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = ccp4_khanty_high_nobility_clothes
            range = { 0 1 } # For the randomness to work correctly
        }
    }
    weight = {
        base = 0
        court_fashion_level_5_modifier = { INPUT_PARAMETER = ugro_permian } 
        modifier = {
            add = 100
            portrait_high_nobles_clothing_trigger = { 
                CULTURE_INPUT = ugro_permian
            } 
        }
    }
}    

## FP3 IRANIAN ##

fp3_iranian_low_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = fp3_iranian_low_nobility_clothes
            range = { 0 1 } # For the randomness to work correctly
        }
    }   
    weight = {
        base = 0
        court_fashion_level_4_modifier = { INPUT_PARAMETER = fp3_iranian }
        court_fashion_level_4_modifier = { INPUT_PARAMETER = fp3_turkic }
        modifier = {
            add = 51 # Slightly higher
            portrait_low_nobles_clothing_trigger = { 
                CULTURE_INPUT = fp3_iranian
            }
        }
        modifier = {
            add = 51 
            portrait_low_nobles_clothing_trigger = { 
                CULTURE_INPUT = fp3_turkic
            }
        }
    }
}

fp3_iranian_high_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = fp3_iranian_high_nobility_clothes
            range = { 0 1 } # For the randomness to work correctly
        }
    }       
    weight = {
        base = 0
        court_fashion_level_5_modifier = { INPUT_PARAMETER = fp3_iranian } 
        court_fashion_level_5_modifier = { INPUT_PARAMETER = fp3_turkic } 
        modifier = {
            add = 51 # Slightly higher
            portrait_high_nobles_clothing_trigger = { 
                CULTURE_INPUT = fp3_iranian
            } 
        }
        modifier = {
            add = 51 
            portrait_high_nobles_clothing_trigger = { 
                CULTURE_INPUT = fp3_turkic
            }
        }
    }
}
    

## FP2 Fate of Iberia ##

    fp2_iberian_christian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 41 # Slightly higher
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = fp2_iberian_christian
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    fp2_iberian_muslim_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 41 # Slightly higher
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = fp2_iberian_muslim
                }
            }
        }

    }

    fp2_iberian_christian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp2_iberian_christian } 
            modifier = {
                add = 51 # Slightly higher
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                }   
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    fp2_iberian_muslim_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp2_iberian_muslim } 
            modifier = {
                add = 51 # Slightly higher
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                } 
            }
        }
    }

    fp2_iberian_christian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp2_iberian_christian } 
            modifier = {
                add = 51 # Slightly higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                } 
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    fp2_iberian_muslim_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp2_iberian_muslim } 
            modifier = {
                add = 51 # Slightly higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                } 
            }
        }
    }

## FP1 NORSE ##

    fp1_norse_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 41 # Slightly higher
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = fp1_norse
                }
            }
        }
    }

    fp1_norse_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp1_norse }
            modifier = {
                add = 51 # Slightly higher
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp1_norse
                }
            }
        }
    }

    fp1_norse_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp1_norse } 
            modifier = {
                add = 51 # Slightly higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp1_norse
                } 
            }
        }
    }

## Sub-Saharan Africans ##

    sub_saharan_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = african
                }
            }
        }
    }

    sub_saharan_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = african }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = african
                }
            }
        }
    }

    sub_saharan_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { sub_saharan_high_nobility_clothes }     
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = african } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = african
                } 
            }
        }
    }

## SP2 Elegance of the Empire ##

    sp2_western_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sp2_western_royalty_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 90
                has_dlc_feature = elegance_of_the_empire
                portrait_imperial_trigger = {
                    CULTURE_INPUT = western
                }
            }
            modifier = {
                add = 40
                has_dlc_feature = elegance_of_the_empire
                portrait_royalty_trigger = {
                    CULTURE_INPUT = western
                }                  
            }
            modifier = {
                factor = 0
                has_ep2_dlc_trigger = yes  
                NOR = {
                    portrait_era2_trigger = yes   
                    portrait_era3_trigger = yes 
                }             
            }
        }
    }

    sp3_western_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sp3_western_royalty_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                has_dlc_feature = couture_of_the_capets
                OR = {
                    portrait_imperial_trigger = {
                        CULTURE_INPUT = western
                    }      
                    portrait_royalty_trigger = {
                        CULTURE_INPUT = western
                    }           
                }
                portrait_royalty_trigger = {
                    CULTURE_INPUT = french
                } 
            }
            modifier = {
                add = 90
                has_dlc_feature = couture_of_the_capets
                portrait_imperial_trigger = {
                    CULTURE_INPUT = western
                }
            }
            modifier = {
                add = 40
                has_dlc_feature = couture_of_the_capets
                portrait_royalty_trigger = {
                    CULTURE_INPUT = western
                }                  
            }
            modifier = {
                factor = 0
                has_ep2_dlc_trigger = yes 
                OR = {
                    portrait_era1_trigger = yes   
                    portrait_era2_trigger = yes   
                }     
                NAND = {
                    portrait_era1_trigger = no
                    portrait_royalty_trigger = {
                        CULTURE_INPUT = french
                    } 
                }         
            }
        }
    }


    # Shogunate

    japanese_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = japanese_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = japanese
                }
            }
        }
    }

    japanese_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = japanese_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = shogunate_special_belt_accessory
                template = katana_01
                range = { 0 1 }
            }       
        }
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_4_trigger = {
                    CULTURE_INPUT = japanese
                }
            }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = japanese
                }
            }
        }
    }

    japanese_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = japanese_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
            accessory = {
                mode = add
                gene = shogunate_special_belt_accessory
                template = katana_01
                range = { 0 1 }
            }   
        }
        weight = {
            base = 0
            modifier = {
                add = 50
                court_fashion_level_5_trigger = {
                    CULTURE_INPUT = japanese
                }
            }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = japanese
                } 
            }
        }
    }
}
